package com.edu.tool.mapper.bc;

import com.edu.tool.bc.SysBCSqlProvider;
import com.edu.tool.bc.SysBusComp;
import com.edu.tool.bean.Record;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Component;


import java.util.List;
import java.util.Map;

@Mapper
public interface SysBCMapper  {
 
     @SelectProvider(type=SysBCSqlProvider.class,method="query")
     public Map<String,Object>  queryOneBC(Map<String,Object> busComp);

     @SelectProvider(type=SysBCSqlProvider.class,method="query")
     public List<Map<String,Object>>  queryBCList(Map<String,Object> busComp);

     @UpdateProvider(type=SysBCSqlProvider.class,method="update")
     public void Update(Map<String,Object> busComp);

//     @InsertProvider(type=SysBCSqlProvider.class,method="insert")
//     @Options(useGeneratedKeys = true, keyProperty = "id")
//     public void Insert(Record record);

     @InsertProvider(type=SysBCSqlProvider.class,method="insert2")
     @Options(useGeneratedKeys = true, keyProperty = "id")
     public void Insert2(Map<String,Object> record);

     @DeleteProvider(type=SysBCSqlProvider.class,method="delete")

     public void delete(Map<String,Object> record);


}
